<?php

namespace App\Models;


use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\HasMany;

class LearnVideoChapter extends BaseModel
{
    protected $guarded = [];

    public function learnVideo(): BelongsTo
    {
        return $this->belongsTo(LearnVideo::class, 'learn_video_id');
    }

    public function learnVideoSection(): HasMany
    {
        return $this->hasMany(LearnVideoSection::class, 'learn_video_chapter_id');
    }
}
